package api

import request "gitee.com/changeden/volcengine-livesaas-request-go"

type UpdateCustomizationViewPermissionRequest struct {
	ActivityId *int64  `json:"ActivityId"`
	CustomUrl  *string `json:"CustomUrl"`
}
type UpdateCustomizationViewPermissionResponse struct {
	SecretKey string `json:"SecretKey"`
}

func (instance *Instance) UpdateCustomizationViewPermission(data *UpdateCustomizationViewPermissionRequest) (*UpdateCustomizationViewPermissionResponse, error) {
	d := request.Data{
		Action: "UpdateCustomizationViewPermissionAPI",
	}
	bindBody(&d, *data)
	var res UpdateCustomizationViewPermissionResponse
	err := instance.post(&d, &res)
	return &res, err
}
